import {
  Controller,
  Get, Post, Redirect, HttpCode, Header,
  Req, Request, Query, Headers, Session, Ip, Param, Body, Res, Response, Next, Inject,
} from '@nestjs/common'

// 提供者
import {
  LoggerClassService,
  LoggerService,
} from './logger.service'

@Controller()
export class AppController {
  constructor(
    @Inject('SUFFIX') private suffix,
    @Inject('StringToken') private stringToken,
    private loggerClassService: LoggerClassService,
    private loggerService: LoggerService,
  ) { }

  @Get()
  handle() {
    console.log(this.suffix)
    this.stringToken.log()
    this.loggerClassService.log()
    this.loggerService.log()
    return 'provider'
  }

}
